- @html_title ||= ts(<%= class_name%>, :list)
- content_for :html_buttons do
  = link_to ts(:add,<%= class_name %>), new_<%= singular_table_name %>_path, class: 'btn btn-xs btn-primary'

/! 搜索表单
.search_form
  - @search||= <%= class_name %>.ransack {}
  = search_form_for(@search, builder: SimpleForm::FormBuilder, class: "index_search_form") do |f|
    .pull-left.push-10-l= per_page_select
    = search_button f
/! 数据列表
table.index-data-table
  thead
    tr
<% attributes.each do |attribute| -%>
      th= <%= class_name%>.t :<%= attribute.name %>
<% end -%>
      th= t(:operation)
  tbody
    - @<%= plural_table_name %>.each do |<%= singular_table_name %>|
      tr
<% attributes.each do |attribute| -%>
        td = <%= singular_table_name %>.<%= attribute.name %>
<% end -%>
        td
          = link_to t(:view),  <%= singular_table_name %>, class: 'btn btn-info btn-xs'
          = link_to t(:edit), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'btn btn-primary btn-xs push-5-l'
          = link_to t(:delete), <%= singular_table_name %>, data: { confirm: t(:confirm_to_delete) }, method: :delete, class: 'btn btn-danger  btn-xs push-5-l'
= paginate @<%= plural_table_name %> if @<%= plural_table_name %>.respond_to?(:total_pages)